package cs304.p3.library.exceptions;

import java.util.List;

@SuppressWarnings("serial")
public class UnavailableBookException extends AbstractLDBException {
	
	private List<String> callNumbers;
	
	public UnavailableBookException(String msg, List<String> callNumbers) {
		super(msg);
		this.callNumbers = callNumbers;
	}
	
	public UnavailableBookException(List<String> callNumbers) {
		this("Unavailable Book Exception", callNumbers);
	}
	
	public void setCallNumbers(List<String> callNumbers) {
		this.callNumbers = callNumbers;
	}
	
	public List<String> getCallNumbers() {
		return callNumbers;
	}

	@Override
	public String getErrorMessage() {
		return "The book is currently unavailable!";
	}

	@Override
	public String getErrorMessageTitle() {
		return "Book Unavailable";
	}
}	
